/*
 * @Description:
 * @Author: LCL
 * @Date: 2021-12-03
 * @LastEditors: LCL
 * @LastEditTime: 2021-12-06
 * @FilePath: /beff/src/components/drag/FrontEndEvent/service.ts
 */
import { getCookie } from '@/utils/utils';
import { request } from 'umi';
export async function debuggerService(data): Promise<API.IResponse<IRequestRes>> {
  const token = getCookie('token');
  return request(`/bpm/api/interface_test`, {
    method: 'POST',
    data: JSON.stringify(data),
    headers: {
      Authorization: `Bearer ${token}`,
      Accept: 'application/json, text/plain',
      'Content-Type': 'application/json',
    },
  });
}
